IdentifiableEntityManager<TContext, TEntity, TId>
Provides a specialized entity manager for entities that implement IIdentifiable<TId>. Automatically generates GUID identifiers for entities with empty IDs during insertion.Syntax
Inheritance
Constructors
IdentifiableEntityManager
Parameters
- dataContext
TContext: Theinstance to use for the database connection. Should be injected by the DI container. - messagePublisher
IMessagePublisher: The SimpleMessageBusinstance to use to publish Messages to a Queue. Should be injected by the DI container.
Methods
OnInsertingAsync
TEntity to the TContext.
Parameters
- entity
TEntity: TheTEntityto be inserted.